const {
	db,
	dbCmd,
	result_success,
	result_error,
	appletInfoCollection,
	collectionCollection,
	userCollection
} = require('../../common/constants')
module.exports = async function(params = {}) {
	const token = this.getUniIdToken()
	if (!token) {
		return result_error('登录失效,请重新登录')
	}
	let payload = await this.uniID.checkToken(token)
	if (payload.code) {
		return payload
	}
	let _id=params._id
	if(!_id){
		return result_error()
	}
	let res=await db.collection('wmzmall-member-parameter').doc(_id).update({
		share_title: params.share_title,
		share_image: params.share_image,
		share_summary: params.share_summary
	})
	return result_success()
}